package itsm.isperp.framework.web.json;

import itsm.isperp.framework.data.mybatis.plugin.JqGridResponseData;

import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;

/**
 * 
 * 
 * 
 * @author lizx
 * @date 2014-5-6
 * @since 1.0
 * 
 */
public class JqGridResponseDataJsonMapper<T> extends ObjectMapper {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public JqGridResponseDataJsonMapper() {
		SimpleModule module = new SimpleModule("JqGridResponseDataJSONModule",
				new Version(1, 0, 0, null, null, null));
		module.addSerializer(JqGridResponseData.class,
				new JqGridResponseDataJsonSerializer());
		registerModule(module);
	}
}
